import java.util.regex.Matcher;
import java.util.regex.Pattern;

import javax.swing.JOptionPane;

public class DummyHandler extends ClipboardHandler {
	private Pattern p = Pattern.compile("^DUMMY");
	@Override
	public boolean processContent() {
		String content = getText();
		Matcher m = p.matcher(content);
		if (m.find()) {
			JOptionPane.showMessageDialog(null, "found dummy data, processing...");
			return true;
		} else
			return false;
	}
	@Override
	public boolean initialize() {
		log.info("Message from environment: " + env.getProperty("msg", "n/a"));
		return true;
	}
}
